package com.magalindo8.desktop;


import org.lwjgl.opengl.KHRDebugCallback.Handler;

import com.ma.logica.IReqHandler;

public class RequestHandler implements IReqHandler{

	protected int adHeight = 10;

	private final static int SHOW_ADS = 1;
	private final static int HIDE_ADS = 0;
	private final static int SHOW_FULLADS = 3;
	private final static int HIDE_FULLADS = 4;

	public RequestHandler() {

	}
	
	protected static Handler handler = new Handler() {

		@Override
		public void handleMessage(int arg0, int arg1, int arg2, int arg3,
				String arg4) {
			// TODO Auto-generated method stub
			switch (arg0) {
			case SHOW_ADS: {
				System.out.println("Mostando Banner");
//				adV.setVisibility(View.VISIBLE);
				break;
			}
			case HIDE_ADS: {
//				adV.setVisibility(View.GONE);
				System.out.println("Ocultando Banner");
				break;
			}
			case SHOW_FULLADS: {
//				fadV.setVisibility(View.VISIBLE);
				System.out.println("Mostrando Anuncio completo");
				break;
			}
			case HIDE_FULLADS: {
//				fadV.setVisibility(View.GONE);
				break;
			}
			}
		}
	};

	@Override
	public void mostrarBanner(boolean show) {
		// TODO Auto-generated method stub
		handler.handleMessage(show ? SHOW_ADS : HIDE_ADS, 0, 0, 0, "");
	}

	@Override
	public void mostrarAnuncioCompleto(boolean show) {
		// TODO Auto-generated method stub
		handler.handleMessage(show ? SHOW_FULLADS : HIDE_FULLADS, 0, 0, 0, "");
	}

	@Override
	public void iniciarAnuncioCompleto() {
		// TODO Auto-generated method stub
		
	}
}